e9301b6376a24391f9d8f397c3a40e9b5e9d6956,mobile/src/main/java/info/papdt/express/helper/ui/CompanyChooserActivity.java,CompanyChooserActivity,setUpViews,#,57
Before Change
mSearchEdit.setBackgroundColor(Color.TRANSPARENT);
mSearchEdit.setHint(R.string.search_hint_company);
mSearchEdit.setImeOptions(EditorInfo.IME_ACTION_DONE);
mSearchEdit.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {
return false;
}
});
/** Set up custom view on ActionBar */
ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
After Change
mSearchEdit.setBackgroundColor(Color.TRANSPARENT);
mSearchEdit.setHint(R.string.search_hint_company);
mSearchEdit.setImeOptions(EditorInfo.IME_ACTION_DONE);
mSearchEdit.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
new CompanyFilterTask().execute(charSequence.toString());
}
@Override
public void afterTextChanged(Editable editable) {
}
});
/** Set up custom view on ActionBar */
ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);